
def replace(string: str):
    dit = {}
    for i in string:
        dit[i] = dit.get(i, 0) + 1
    min_num = min(dit.items(), key=lambda x: x[1])[1]
    res = [i for i in string if dit.get(i) != min_num]
    return ''.join(res)
# 这个方法可以


res = replace(s)
print(res)